2023-10-17


Typescript - variables
Explicit type annotation:
let movieTitle: string;
let movieLength: number;
let isCategoryAction: boolean;
Implicit type annotation (type inference):
let tvSerie = "La Brea";
let isDrama = true;
Any type Should not be used unless necessary
let director: any = "Cristopher Nolan";
director = 10;
director = true;
director();
Go back to all posts